﻿using System.ComponentModel.Composition;
using System.Composition.Hosting;

namespace TestMef
{
    [Export]
    public class TestMefExport
    {
        //[Autowired]  protected LogHelper2 _logger { get; set; }
        //[Import]   ILogger<TestMefExport> _logger { get; set; } 
        //[ImportingConstructor]
        //public TestMefExport(ILogger<TestMefExport> logger)
        //{
        //    _logger = logger;
        //}

        public string Get()
        {
            // LogHelper.Info("测试");
            //_logger.LogInformation("测试");
            return "测试";
        }
    }
}
